package com.bwie.controller;

import com.bwie.service.UserService;
import com.bwie.vo.UserVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author : LeiMingkun
 * @date : 2024-07-18 08:55
 * @description : UserController
 **/
@RestController
@RequestMapping("/user/user")
public class UserController {
    private UserService userService;
    @PostMapping("/getLogin")
    public Map getLogin(@RequestBody UserVo userVo){
        return userService.getLogin(userVo);
    }
    @PostMapping("/getCode")
    public Map getCode(@RequestBody UserVo userVo){
        return userService.getCode(userVo);
    }
}